<script type="text/javascript">
	function KhoiTaoEditor(idTextArea, numHeight, numWidth, toolBar)
	{
        var pathCKFinder = "../scripts/ckfinder/";
    	var editor = CKEDITOR.replace('<?php echo $idTextArea; ?>',
    	{
    		// Load the German interface.
    		language: 'vi',
    		// Xem
    		filebrowserBrowseUrl: 		"../scripts/ckfinder/" + 'ckfinder.html',
    		filebrowserImageBrowseUrl: "../scripts/ckfinder/" + 'ckfinder.html?type=Images',
    		filebrowserFlashBrowseUrl: "../scripts/ckfinder/" + 'ckfinder.html?type=Flash',
    		// Upload
    		filebrowserUploadUrl: 		"../scripts/ckfinder/" + 'core/connector/php/connector.php?command=QuickUpload&type=Files',
    		filebrowserImageUploadUrl: "../scripts/ckfinder/" + 'core/connector/php/connector.php?command=QuickUpload&type=Images',
    		filebrowserFlashUploadUrl: "../scripts/ckfinder/" + 'core/connector/php/connector.php?command=QuickUpload&type=Flash',
    		
            toolbar : toolBar,
    		height: numHeight,
            width: numWidth,
            enterMode : CKEDITOR.ENTER_BR
    	});
    	
    	CKFinder.setupCKEditor( editor, pathCKFinder) ;
     }
</script>